package com.bdqn.service.impl;

import com.bdqn.dao.RoleMapper;
import com.bdqn.entity.User;
import com.bdqn.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Set;

/**
 * @author 陈昆昆
 * @version 1.0
 * @date 2020/4/9 16:46
 */
@Service
public class RoleServiceImpl implements RoleService {
    @Autowired
    private RoleMapper roleMapper;

    @Override
    public Set<String> findRoleListByUserid(int userId) throws Exception {
        return roleMapper.findRoleListByUserid(userId);
    }
}
